#!/bin/sh

echo "clear" > plot.plt
echo "reset" >> plot.plt
echo "
set terminal gif animate delay 10
set output \"plot.gif\"
set size square
set xrange [-5:5]
set yrange [-5:5]
set zrange [-5:5]
unset key
set view equal xyz
set view 60,210
set xyplane relative 0.0
" >> plot.plt

for f in output*.dat
do
	echo "splot \"$f\" u 1:3:2 with points" >> plot.plt 
done

gnuplot plot.plt

cp plot.gif ~/lib/html/
